package com.sd.serv1;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Login extends HttpServlet{
	public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException{
		PrintWriter out=res.getWriter();
		
		//ServletConfig config=getServletConfig();
		
		//ServletContext ctx=config.getServletContext();
		
		ServletContext ctx=getServletContext();
		String val1=ctx.getInitParameter("v1");
		String val2=ctx.getInitParameter("v2");
		int sum=Integer.parseInt(val1)+Integer.parseInt(val2);
		out.println("<h1>Val of Val1="+val1+"<h1>");
		out.println("<h1>Val of Val2="+val2+"<h1>");
		out.println("<h1>SUM ="+sum+"</h1>");
	}
}
